<?php echo $this->doctype('XHTML1_STRICT');?>
<html lang="en">
<head>   
    <meta http-equiv = "Content-Type" content = "text/html" charset = "utf-8" />
    <?php echo $this->headLink()->appendStylesheet('/css/front-end/reset.css'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/style.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/layout.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/prettyPhoto.css','all'); ?>
    <?php echo $this->headScript()->appendFile('/js/front-end/jquery-1.7.1.min.js');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-yui.js','text/javascript');?>      
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-replace.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/Dynalight_400.font.js','text/javascript');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/FF-cash.js','text/javascript');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery.prettyPhoto.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/hover-image.js','text/javascript');?>   
    <?php echo $this->headScript()->offsetSetFile(0,'js/front-end/jquery.easing.1.3.js','text/javascript');?>   
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/jquery.bxSlider.js','text/javascript');?>  
    <script type="text/javascript">
		$(document).ready(function() {			
			$('#slider-2').bxSlider({
				pager: true,
				controls: false,
				moveSlideQty: 1,
				displaySlideQty: 4
			});
			$("a[data-gal^='prettyPhoto']").prettyPhoto({theme:'facebook'});
		}); 
	</script>
	<!--[if lt IE 8]>
    <div style=' clear: both; text-align:center; position: relative;'>
        <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
        	<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
        </a>
    </div>
	<![endif]-->
    <!--[if lt IE 9]>
   		<script type="text/javascript" src="js/html5.js"></script>
	<![endif]-->
</head>
<body id="page3">
	<!--==============================content================================-->
    <section id="content"><div class="ic"><div class="inner_copy">All <a href="http://www.magentothemesworld.com" title="Best Magento Templates">premium Magento themes</a> at magentothemesworld.com!</div></div>
        <div class="main">
            <div class="container">            	
                <div id="slider-2">
                	<?php 
						$result = $this->data;
						$totalLine =  count($result);						
						for ($i = 0; $i < $totalLine; $i++) 
						{
							echo "<div>\n";
							echo "<div class = \"p4\">\n";
							echo "<figure><a class=\"lightbox-image\" href=\"/images/front-end/slider-img1.jpg\" data-gal=\"prettyPhoto[prettyPhoto]\">\n";
							echo "<img src=\"/images/front-end/" .$result[$i]['images'] ."\" ></a></figure>\n";
							echo "<h5>" .$result[$i]['spice_name'] ."</h5>\n";
							echo "<p class=\"p1\">" .$result[$i]['description'] ."</p>\n";
							echo "<p class=\"p2\"><strong class=\"color-2\"> Giá: " .$result[$i]['price'] ."VNÐ</strong></p>\n";
							echo "<form action =\"/index/add\" method = \"get\">";
							echo "<a class=\"button-1\" href=\"/index/add?item_id=" .$result[$i]['item_id']. "&spice_id=" .$result[$i]['spice_id']. "\"> Thêm </a>\n";
						    echo "</div>\n";							
							echo "<figure><a class=\"lightbox-image\" href=\"/images/front-end/slider-img2.jpg\" data-gal=\"prettyPhoto[prettyPhoto]\">\n";
							echo "<img src=\"/images/front-end/" .$result[++$i]['images'] ."\"></a></figure>\n";
							echo "<h5>" .$result[$i]['spice_name'] ."</h5>\n";
							echo "<p class=\"p1\">" .$result[$i]['description']. "</p>\n";
							echo "<p class=\"p2\"><strong class=\"color-2\">Giá: " .$result[$i]['price']."  VNÐ </strong></p>\n";
							echo "<a class=\"button-1\" href=\"/index/add?item_id=" .$result[$i]['item_id']. "&spice_id=" .$result[$i]['spice_id']. "\"> Thêm </a>\n";
							echo "</div>\n"; 							
						}                	
                	?>                	
            </div>
        </div>
       </div>
    </section>
</body>
</html>
    